import request from '@/util/request.js';

/**
 * @description 乡村集市
 * @param {Object} data
 */
export function marketList(data){
	return request({
		url:'/getFairList',
		method:'GET',
		data
	})
}
/**
 * @description 乡村集市详情
 * @param {Object} data
 */
export function marketDetail(data){
	return request({
		url:'/getFairInfo',
		method:'GET',
		data
	})
}
/**
 * @description 删除乡村集市
 * @param {Object} data
 */
export function marketDelete(data){
	return request({
		url:'/deleteFair',
		method:'GET',
		data
	})
}
/**
 * @description 新增/编辑乡村集市
 * @param {Object} data
 */
export function saveMarket(data){
	return request({
		url:'/insertAndUpdateFair',
		method:'POST',
		data
	})
}